package test

import (
	"github.com/martini-contrib/render"
	// "log"
	// "github.com/go-martini/martini"
	// "net/http"
	// "fmt"
	"server/conf"
	"server/lib/Imartini"
)

//测试godoc
func api(r render.Render, mlog *Imartini.Mlog) {
	mlog.Printf("'api-tessdkfjoiasjd\nflsdfjt'")
	// r.JSON(200, map[string]interface{}{"hello": "world"})
}

func api2(r render.Render, mlog *Imartini.Mlog) {
	// hello := "world"
	r.HTML("hello.html", map[string]interface{}{
		"hello":  map[string]interface{}{"hello": "world", "hello2": "world2", "hello3": "world3"},
		"hello2": map[string]interface{}{"hello": conf.GET},
	})
}
